public class Message {
    private String name;
    private String synopsis;//简介
    private Message nextMessage;//存放下一个最短路径的地址
    private int code;//编号

    public Message() {
    }

    public Message(int code) {
        this.code = code;
    }

    public Message(String name, String synopsis, int code) {
        this.name = name;
        this.synopsis = synopsis;
        this.code = code;
    }

    public Message getNextMessage() {
        return nextMessage;
    }

    public void setNextMessage(Message nextMessage) {
        this.nextMessage = nextMessage;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
